#pragma once
#include "afxwin.h"
#include "cvxImage.h"
#include "cvxDeckLinkInputCallback.h"
#include "cvxMarker.h"


// CSideBySideDlg dialog

class CSideBySideDlg : public CDialog
{
	DECLARE_DYNAMIC(CSideBySideDlg)

public:
	CSideBySideDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CSideBySideDlg();

	//added
	void updateImages(char *pdata, char *pRightData, int w, int h, int nChannels, 
					  const vector<CvxMarker> &leftMarkers, const vector<CvxMarker> &rightMarkers, bool flipRight);

// Dialog Data
	enum { IDD = IDD_SIDE_BY_SIDE };


protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	// picture from left camera
	CStatic m_leftPicture;
	// picture from right camera
	CStatic m_rightPicture;

	IplImage *m_leftImage;     //color image
	IplImage *m_rightImage;

	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg void OnBnClickedSdsCaptureFrame();
protected:
	CButton m_sbsShowMarkerCenter;
};
